package com.fignfilter.front.controller;


import com.feignfilter.common.BaseReturnBean;
import com.fignfilter.front.dto.User;
import com.fignfilter.front.feign.Backend1FeignApi;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/front")
@Api("swaggerDemoController相关的api")
public class FrontController {

    @Autowired
    Backend1FeignApi feignApi;
    @ApiOperation(value="测试入口Controller")
    @RequestMapping("/testController")
    public BaseReturnBean backendController(User user){
        return feignApi.testController("test");
    }
}
